const exp = require("express");

const app = exp();
app.use((req,res,next)=>{
    res.setHeader('Access-Control-Allow-Origin', "*");
    next();
})
app.get("/getServer",(req,res)=>{
    let str = "明月别枝惊鹊，清风半夜鸣蝉。"
    let obj = {
        line1:"明月别枝惊鹊，清风半夜鸣蝉。",
        line2:"稻花香里说丰年，听取蛙声一片。",
        line3:"七八个星天外，两三点雨山前。",
        line4:"旧时茅店社林边，路转溪桥忽见。"
    }
    res.send(str);
})


app.listen(80,()=>{
    console.log("启动成功!");
})